package com.l024.android_ljl.util;

import java.util.regex.Pattern;

/**
 * @author wu_ming_zhi_bei
 * @date 2021/5/6 17:37
 * @Notes
 */
public class RegexUtils {
    /**
     *  正则：手机号（简单）, 1字头＋10位数字即可.
     * @param in
     * @return
     */
    public static boolean isPhone(String in) {
        Pattern pattern = Pattern.compile("^[1]\\d{10}$");
        return pattern.matcher(in).matches();
    }
}
